<template>
  <div class="my_container">
    <el-container>
      <el-header>喵喵后台管理系统</el-header>
      <el-container class="main_container">
        <el-aside width="200px">
          <el-menu
            default-active="1"
            class="el-menu-vertical-demo"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b"
            router
          >
            <el-menu-item index="/admin/user">
              <template slot="title">
                <i class="el-icon-user"></i>
                <span>用户管理</span>
              </template>
            </el-menu-item>
            <el-menu-item index="/admin/movie">
              <i class="el-icon-menu"></i>
              <span slot="title">电影管理</span>
            </el-menu-item>
            <el-menu-item index="/admin/cinema">
              <i class="el-icon-s-shop"></i>
              <span slot="title">影院管理</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {

  data() {
    return {}
  },
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath)
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath)
    }
  }
}
</script>

<style scoped>
.my_container {
  height: 100%;
}
.main_container {
  display: flex;
}
.el-header {
  background-color: #16a951;
  color: #fff;
  text-align: center;
  line-height: 60px;
  font-size: 24px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  height: 100%;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  height: 100%;
  flex: 1;
}
.el-container {
  height: 100%;
}
.el-menu-vertical-demo {
  height:100%;
  line-height: 60px;
}
.el-menu-item {
  padding-left: 0!important;
  cursor: pointer;
}
</style>
